<template>
   <div class="infoDetail-container">
       <h3> {{ infoDetail.title }} </h3>
       <hr/>
       <div class="content">
           <img :src="infoDetail.photo" alt="">
           <img :src="infoDetail.img" alt="">
           <img :src="infoDetail.src" alt="">
       </div>

   </div>
</template>
<script>
export default {
    data(){
        return{
            infoDetail:{}
        }
    },
    created(){
        this.getGoodsDesc();
    },
    methods:{
        getGoodsDesc(){
            this.$http.get('infoDetail.json').then( result=>{
                if(result.body.status === 0){
                    this.infoDetail = result.body.message[0]
                }
            })
        }
    }
    
}
</script>
<style lang="less" scoped>
.infoDetail-container{
    padding: 4px;
    h3{
        font-size: 16px;
        color: #226aff;
        text-align: center;
        margin: 15px 0;
    }
    .content img{
        width: 100%;
    }
}

</style>

